import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes: [
        {
            path: '/',
            name: 'Show',
            component: () => import('@/components/Show.vue'),
            children:[
                //人事工作台
                {
                    path: '/Personneldesk',
                    name: 'Personneldesk',
                    component: () => import('@/components/workbench/Personneldesk'),
                },
                //审批中心 待处理
                {
                    path: '/Pending',
                    name: 'Pending',
                    component: () => import('@/components/approver/Pending.vue'),
                },
                //财务工作台
                {
                    path: '/Financialworkbench',
                    name: 'Financialworkbench',
                    component:() => import('@/components/workbench/Financialworkbench')
                }
            ]
        },
        {
            path: '/login',
            name: 'login',
            component: () => import('@/components/Login.vue'),
        }
    ],
    mode:"history"

})